package com.zhang.spring.redis;

import redis.clients.jedis.Jedis;

import java.util.Set;

public class RedisDemo {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("master",6379);
        System.out.println(jedis.ping());
        jedis.set("name", "zs");
        System.out.println(jedis.get("name"));
        Set<String> keys = jedis.keys("*");
        System.out.println(keys);
    }
}
